package com.myphoto.business.photo.service;

import com.myphoto.base.mybatis.photo.entity.VideoEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface VideoService {

    /**
    * @description 查询视频列表
    * @author 方安伦
    * @date 2022/9/9 9:19
    * @return List<VideoEntity>
     **/
    List<VideoEntity> loadVideoList() throws Exception;

    /**
    * @description 上传视频
    * @author 方安伦
    * @date 2022/9/9 09:25
    * @param lastModified
    * @param file
     **/
    void uploadVideo(String lastModified, MultipartFile file) throws Exception;

    /**
    * @description 检查视频是否已经存在
    * @author 方安伦
    * @date 2022/9/9 09:22
    * @param filename
    * @return boolean
     **/
    boolean checkFileIsExist(String filename) throws Exception;

    /**
    * @description 检查视频信息是否已经存在
    * @author 方安伦
    * @date 2022/9/9 09:24
    * @param filename
    * @return boolean
     **/
    boolean checkFileInfoIsExist(String filename) throws Exception;

    /**
    * @description 清除冗余图片信息
    * @author 方安伦
    * @date 2022/9/9 9:28
     **/
    void clearErrorVideoinfo() throws Exception;
}
